package nin.ja;

import android.app.Activity;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.os.Bundle;
import android.util.Log;

/*
 * Input events and bootstrap
 */
public class PandaDomo extends Activity implements SensorEventListener{
	private GameRenderer gameRenderer;
	private GameThread gameThread;
	private RenderQueue renderSystem;
	
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		
		Log.v("PandaDomo", "Bootstraping and starting");
		
		gameRenderer = new GameRenderer(this, 0, 0);
		renderSystem = new RenderQueue(gameRenderer);
		gameThread = new GameThread(gameRenderer, renderSystem);
		
		
		setContentView(gameRenderer);
		new Thread(gameThread).start();
	}

	protected void onDestroy(){
		super.onDestroy();
	}
	
	protected void onPause(){
		super.onPause();
	}
	
	protected void onResume(){
		super.onResume();
	}
	
	@Override
	public void onAccuracyChanged(Sensor arg0, int arg1) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onSensorChanged(SensorEvent arg0) {
		// TODO Auto-generated method stub
		
	}

}
